#=========== 导入组件 =========
from django_filters import FilterSet
# =========== 导入数据类 ===========
from basicweb.models import BranchArea, Branch, AreaPlace


# ===== 区域 ========
class BranchAreaFilter(FilterSet):

    class Meta:
        model = BranchArea
        fields = ('id', 'name', 'branch')


# ===== 场地 ============
class AreaPlaceFilter(FilterSet):
    class Meta:
        model = AreaPlace
        fields = ('code', 'name', 'brancharea', 'placetype')
